<?php


$arr = array (
        'framework' => array (
                            0 => 12,
                            1 => 35,
                            2 => 67,
                      ),
        'cms' => array (
                      0 => 1,
                      1 => 77,
                  ),
      );



 parseMultiDim($arr);


function parseMultiDim($array=array())
{

  foreach ($array as $key=>$value)
  {
    //print_r($value);
    if(is_array($value)){
      parseMultiDim($value);
    } else {
      echo "$key => $value \n\n";
      static $max = 0;
      if($value > $max) {
        $max = $value;
      }
    }
  }
  echo $max;
}
